package com.lei.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
@MapperScan("com.lei.order.mapper")
//设置包扫描的规则
@ComponentScan(basePackages = {"com.lei"})
@SpringBootApplication
@EnableDiscoveryClient   //注册中心
@EnableFeignClients     //开启服务调用
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
